<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

<style>
</style>
<div class="easyui-layout" fit="true" >
	<div region="center"  style="height:100%;width:100%;" border="0">
		<div id="tt" class="easyui-tabs" style="width:1185px;height:620px;margin:0px;padding:0px;" border="0">    
		       
		</div>  
	</div>
</div>

<script>
$(function(){
	//addTab('${wo_id}');
	var content = '<iframe name="tabFrame" scrolling="auto" frameborder="0"  src="woController.do?todoWoR&todo_id=${todo_id}&o_wo_id=${o_wo_id}&hf=${hf}" style="width:100%;height:100%;"></iframe>';    
    $('#tt').tabs('add',{    
        title:'待处理工单',    
        content:content,    
        closable:false   
    });   
});

function addTab(title){    
    if ($('#tt').tabs('exists', title)){    
        $('#tt').tabs('select', title);    
    } else {  
    	var isclosable = true;
    	if(title=='${wo_id}'){
    		isclosable = false;
    	}
    	
        var content = '<iframe scrolling="auto" frameborder="0"  src="woController.do?woDetail&wo_id='+title+'" style="width:100%;height:100%;"></iframe>';    
        $('#tt').tabs('add',{    
            title:title,    
            content:content,    
            closable:isclosable   
        });    
    }    
}   
</script>